home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / VELENG10.ZIP / DUMMY.C < prev    next >
C/C++ Source or Header  |  1997-07-27  |  1KB  |  54 lines

  1. // ****************************************************************************
  2. // *                                                                          *
  3. // *                      Velena Source Code V1.0                             *
  4. // *                   Written by Giuliano Bertoletti                         *
  5. // *       Based on the knowledged approach of Louis Victor Allis             *
  6. // *   Copyright (C) 1996-97 by Giuliano Bertoletti & GBE 32241 Software PR   *
  7. // *                                                                          *
  8. // ****************************************************************************
  9.  
  10. // Portable engine version.
  11. // read the README file for further informations.
  12.  
  13. // ==========================================================================
  14.  
  15.  
  16. #include <stdio.h>
  17.  
  18. // This code is used under Linux to define dummy functions which are
  19. // referenced somewhere in the deadcode.
  20.  
  21. // Since this is a porting of the core engine I didn't bother to delete
  22. // the functions which are not used... :-)))
  23.  
  24. int readkey()
  25.         {
  26.         return 0;
  27.         }
  28.  
  29. void screen_on()
  30.         {
  31.         }
  32.  
  33. void screen_off()
  34.         {
  35.         }
  36.  
  37. void clrscr()
  38.         {
  39.         }
  40.  
  41. long fileln(FILE *f) {
  42.   long int save_pos, file_size;
  43.   save_pos = ftell(f);
  44.   if(save_pos == -1)
  45.     return -1L;
  46.   fseek(f,0L,SEEK_END);
  47.   file_size = ftell(f);
  48.   fseek(f, save_pos,SEEK_SET);
  49.   return file_size;
  50. }
  51.  
  52.  
  53.  
  54.